package com.iris.smartclass.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.iris.smartclass.model.dto.student.StudentLoginRequest;
import com.iris.smartclass.model.dto.student.StudentSendCodeRequest;
import com.iris.smartclass.model.dto.student.StudentQueryRequest;
import com.iris.smartclass.model.entity.Student;
import com.iris.smartclass.model.vo.ClassDataVO;
import com.iris.smartclass.model.vo.StudentVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author 孙鸣
* @description 针对表【student(学生)】的数据库操作Service
* @createDate 2024-12-31 09:20:36
*/
public interface StudentService extends IService<Student> {
    /**
     * 获取查询条件
     *
     * @param studentQueryRequest
     * @return
     */
    QueryWrapper<Student> getQueryWrapper(StudentQueryRequest studentQueryRequest,HttpServletRequest request);


    StudentVO getStudentVO(Student student);


    List<StudentVO> getStudentVO(List<Student> studentList);

    ClassDataVO getClassData(HttpServletRequest request);


    boolean sendPhoneCode(StudentSendCodeRequest studentSendCodeRequest);

    boolean send(String phone, String code);

    String StudentLoginByPhone(StudentLoginRequest studentLoginRequest);
}
